<#include "/macro/base.ftl" />


<form id="pagerForm" method="post" action="${base}/sys/sysUser/list">
	<@pagerForm />
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="${base}/sys/sysUser/list" method="post">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>用户名：</label>
					<input type="text"   name="userName" value="${(bean.userName)!}" placeholder="用户名"/>
				</li>
				<li>
					<label>姓名/昵称：</label>
					<input type="text"   name="name" value="${(bean.name)!}" placeholder="姓名/昵称"/>
				</li>
				<li>
					<label>用户状态：</label>
					<!-- <input type="text" min="0" max="2"  name="state" value="${(bean.state)!}" placeholder="用户状态"/> -->
					<input type="radio" name="state"  value="0">待验证</input>
					<input type="radio" name="state"  value="1">启用 </input>
					<input type="radio" name="state"  value="2">禁用 </input>
					
				   <!-- <select  name="artTypeId" style="width:20" >
				    	<option value="">请选择状态</option> 
		                <option value="0">待验证</option> 
		                <option value="1">启用</option> 
		                <option value="2">禁止</option> 
			   	    </select>  -->
				</li>
				
				<!--
				<li>
					<label>密码：</label>
					<input type="text"   name="password" value="${(bean.password)!}" placeholder="输入要查询的密码"/>
				</li>
			    <li>
					<label>加密密码的盐：</label>
					<input type="text"   name="salt" value="${(bean.salt)!}" placeholder="输入要查询的加密密码的盐"/>
				</li>
				<li>
					<label>创建时间：</label>
					<input type="text" class="date"" datefmt="yyyy-MM-dd HH:mm:ss" readonly="true" name="createDate" value="${(bean.createDate?string('yyyy-MM-dd HH:mm:ss'))!}" placeholder="输入要查询的创建时间"/>
				</li>
				<li>
					<label>创建人：</label>
					<input type="text"   name="createUser" value="${(bean.createUser)!}" placeholder="输入要查询的创建人"/>
				</li>
				<li>
					<label>更新用户id：</label>
					<input type="text"  name="updateUser" value="${(bean.updateUser)!}" placeholder="输入要查询的更新用户id"/>
				</li>
				<li>
					<label>最后一次更新时间：</label>
					<input type="text" class="date"" datefmt="yyyy-MM-dd HH:mm:ss" readonly="true" name="updateDate" value="${(bean.updateDate?string('yyyy-MM-dd HH:mm:ss'))!}" placeholder="输入要查询的最后一次更新时间"/>
				</li>
				-->
				
			</ul>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
					<li><div class="button"><div class="buttonContent"><button type="reset">清空重输</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li class="line">line</li>
			<li><a class="add" href="${base}/sys/sysUser/add" target="dialog"
			  rel="sysUser"  width="510" height="300"
			><span>添加</span></a></li>
			<li class="line">line</li>
			<li><a class="delete" href="${base}/sys/sysUser/delete?id={sid}" target="ajaxTodo" title="确定要删除吗？" warn="请选中要删除的数据"><span>删除</span></a></li>
			<li class="line">line</li>
			<li><a class="edit" href="${base}/sys/sysUser/edit?id={sid}" target="dialog"
			  rel="sysUser"  width="510" height="300" warn="请选中要修改的数据"><span>修改</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>

	<div id="w_list_print">
		<table class="list" width="100%" targetType="navTab" asc="asc" desc="desc" layoutH="116">
			<thead>
				<tr>
					<th align="center" width="50">序号</th>
					<th >用户名</th>
					<th >真实姓名/昵称</th>
					<!-- <th >密码</th>
					<th >加密密码的盐</th> -->
					<th >用户状态</th>
			 		<th orderField="create_date" class="<#if page.orderField! == 'create_date'>${ page.orderDirection}</#if>">创建时间</th>
					 <th >创建人</th>
					<!-- <th >更新用户id</th>
					<th orderField="update_date" class="<#if page.orderField! == 'update_date'>${ page.orderDirection}</#if>">最近更新时间</th>  -->
					<th width="200">操作</th> 
				</tr>
			</thead>
			<tbody>
				<#if (page)??>
					<#list page.list as bean>
						<tr target="sid" rel="${ bean.id?c}">
							<td align="center">${ bean_index+1}</td>
							<td>${ (bean.userName)!}</td>
							<td>${ (bean.name)!}</td>
							<!--  <td>${ (bean.password)!}</td>
							<td>${ (bean.salt)!}</td> -->
							<td><#if bean.state! == '0'>待验证</#if><#if bean.state! == '1'>启用</#if><#if bean.state! == '2'>禁用</#if></td>
							<td>${ (bean.createDate?string('yyyy-MM-dd HH:mm:ss'))!}</td>
							<td>${ (bean.tUserName)!}</td>
							<!-- <td>${ (bean.updateUser)!}</td>
							<td>${ (bean.updateDate?string('yyyy-MM-dd HH:mm:ss'))!}</td> -->
							<td>
								<a title="确定要删除吗？" target="ajaxTodo" href="${base}/sys/sysUser/delete?id=${bean.id?c}" class="btnDel">删除</a>
								<a title="编辑" target="dialog" href="${base}/sys/sysUser/edit?id=${bean.id?c}" 
								rel="sysUser"  width="510" height="300" class="btnEdit">编辑</a>
								<a title="授权" target="dialog" href="${base}/sys/sysUser/authorization?id=${bean.id?c}" 
								  width="800" height="520">授权</a>
							</td> 
						</tr>
					</#list>
				<#else>
					<tr>
						<td colspan="11" align="center">暂没记录</td>
					</tr>
				</#if>
			</tbody>
		</table>
	</div>
	<@pages />
</div>
